/* 移动端组件专用样式 */

/* MobileCardList 组件样式  */
.mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 130px;
  margin-bottom: 60px; /* 为底部固定的分页和批量操作按钮留出空间 */
}

.mobile-card-list.with-batch-action {
  padding-bottom: 180px;
}

.mobile-card {
  border-radius: 8px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.price-date {
  font-size: 16px;
  font-weight: 500;
}

.card-body {
  padding: 5px 0 10px;
}

.price-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
}

.price-label {
  color: #606266;
}

.price-value {
  font-weight: bold;
  font-size: 20px;
  color: #409EFF;
}

.price-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.manual-tag {
  margin-right: 5px;
}

.update-time {
  font-size: 12px;
  color: #909399;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #EBEEF5;
}

.checkbox-wrapper {
  padding: 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-group {
  display: flex;
  gap: 10px;
}

/* 选中的卡片样式 */
.selected-card {
  border: 1px solid #409EFF;
  box-shadow: 0 2px 8px rgba(64, 158, 255, 0.2);
}

.selected-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 12px 0 0;
  border-color: #409EFF transparent transparent transparent;
  z-index: 1;
}

/* 优化移动端复选框样式 */
.mobile-card .el-checkbox__input.is-checked + .el-checkbox__label {
  color: #409EFF;
}

.mobile-card .el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: #409EFF;
  border-color: #409EFF;
}

/* 增强移动端触摸区域 */
.mobile-card .el-checkbox {
  padding: 8px 5px;
  margin-right: 0;
}

.mobile-card .button-group .el-button {
  padding: 9px;
}

/*  MobileBatchActions 组件样式  */
/* 移动端批量操作浮动按钮 */
.mobile-batch-action {
  position: fixed;
  bottom: 90px;
  left: 0;
  right: 0;
  padding: 0 10px;
  z-index: 98;
  animation: slide-up 0.3s ease;
}

@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.batch-action-content {
  background-color: #303133;
  color: white;
  border-radius: 20px;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.selected-count {
  font-size: 14px;
  font-weight: 500;
}

/*  MobilePagination 组件样式  */
/* 移动端固定分页器 */
.mobile-fixed-pagination {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 10px;
  z-index: 97;
  background-color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #EBEEF5;
}

.pagination-wrapper {
  background-color: #fff;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #606266;
}

.total-records {
  color: #909399;
}

.page-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-indicator {
  display: flex;
  align-items: center;
}

.page-indicator .el-input {
  width: 60px;
}

.page-indicator .el-input__inner {
  text-align: center;
  padding: 0 5px;
}

.page-size-selector {
  margin-top: 5px;
}

.page-size-selector .el-input__inner {
  font-size: 13px;
}

/*  MobileFilter 组件样式  */
/* 筛选结果指示器 */
.filter-indicator {
  margin: 8px 0;
  padding: 0 8px;
  animation: fade-in 0.3s ease;
}

.indicator-content {
  background-color: #ecf5ff;
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #409EFF;
  font-size: 13px;
}

.indicator-content i.el-icon-close {
  cursor: pointer;
  padding: 4px;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 移动端筛选器触发按钮 */
.mobile-filter-trigger {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: auto;
  height: 50px;
  padding: 0 20px;
  border-radius: 25px;
  background-color: #409EFF;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(64, 158, 255, 0.4);
  z-index: 99;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-filter-trigger:active {
  transform: scale(0.95);
}

.mobile-filter-trigger i {
  font-size: 20px;
  margin-right: 5px;
}

.filter-text {
  font-size: 14px;
  font-weight: 500;
}

/* 筛选提示气泡 */
.filter-tooltip {
  position: absolute;
  top: -50px;
  right: 0;
  background-color: #303133;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: pulse-tooltip 2s infinite;
}

.tooltip-arrow {
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #303133;
}

@keyframes pulse-tooltip {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 移动端筛选表单 */
.mobile-filter-form {
  padding: 15px;
}

.mobile-filter-btns {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* 修复Element抽屉组件在移动端的交互问题 */
.el-drawer__wrapper .el-drawer.btt {
  border-radius: 16px 16px 0 0;
}

.el-drawer__header {
  margin-bottom: 10px;
  padding: 15px 15px 0;
  font-weight: bold;
  color: #303133;
}

/* 批量操作按钮在分页器上方*/
@media (max-width: 767px) {
  /* 当有批量操作按钮时，调整筛选按钮位置 */
  .mobile-batch-action + .mobile-filter-container .mobile-filter-trigger {
    bottom: 160px; /* 调高筛选按钮位置，避免与批量删除按钮重叠 */
    right: 20px;
  }
  
  /* 默认筛选按钮位置 */
  .mobile-filter-trigger {
    bottom: 80px;
  }
}

/*  MobileGuide 组件样式  */
/* 引导对话框样式 */
.guide-content {
  padding: 10px 0;
}

.guide-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.guide-item:last-child {
  border-bottom: none;
}

.guide-item i {
  font-size: 20px;
  color: #409EFF;
  margin-right: 12px;
}

.guide-dialog .el-dialog__body {
  padding-top: 5px;
  padding-bottom: 5px;
}

.guide-dialog .dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guide-dialog .dialog-footer .el-checkbox {
  margin-right: 0;
} 